#include "list_node.h"

template <typename T>
ListNodePosi(T) ListNode<T>::insertAsSucc(const T &e) {
	ListNodePosi(T) p = new ListNode(e,pred,this);
	pred->succ = p;
	pred = p;

	return p;
}

template <typename T>
ListNodePosi(T) ListNode<T>::insertAsPred(const T &e) {
	ListNodePosi(T) p = new ListNode(e,this,succ);
	succ->pred = p;
	succ = p;

	return p;
}
